package ${dtoPackage};

<#list po.importList as import>
import ${import};
</#list>
<#list po.nonCommonFields as field>
<#if ! field.nullable>
import javax.validation.constraints.NotNull;
<#break>
</#if>
</#list>
<#list po.nonCommonFields as field>
<#if field.string>
import javax.validation.constraints.Size;
<#break>
</#if>
</#list>

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * ${po.title}
 * @CreateDate ${date}
 */
 @ApiModel("${po.title}DTO")
public class ${po.name}DTO {
	@ApiModelProperty
	private Long id;
	<#list po.nonCommonFields as field>
	/**
	 * ${field.title}
	 */
	<#if ! field.nullable>
	@NotNull
	</#if>
	<#if field.string>
	@Size(min=<#if field.nullable>0<#else>1</#if>, max=<#if field.name?ends_with('Name')>50<#elseif field.name == 'name'>50<#else>${field.size?string('####')}</#if>)
	</#if>
	@ApiModelProperty(value="${field.title}", notes="最大长度：${field.size?string('####')}")
	private ${field.typeName} ${field.name};
	</#list>
	
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	<#list po.nonCommonFields as field>
	public void set${field.capitalizedName}(${field.typeName} ${field.name}) {
		this.${field.name} = ${field.name};
	}
	public ${field.typeName} get${field.capitalizedName}() {
		return ${field.name};
	}
	</#list>
}